package kr.hkit.powerjava.chapter13;

import java.awt.HeadlessException;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class MyWorkFrame extends JFrame {

	public MyWorkFrame() throws HeadlessException {
		BtnPanel bp = new BtnPanel();
		HeaderPanel hp = new HeaderPanel();
		JPanel p = new JPanel();
		p.add(hp);
		p.add(bp);
		
		add(p);
		pack();
		setVisible(true);
	}
		
}
